package com.ruoyi.class_management.domain;

import com.ruoyi.garde.domain.TbGrade;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 班级对象 tb_class
 *
 * @author hongyi
 * @date 2023-12-26
 */
public class TbClass extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @Excel(name = "主键")
    private String id;

    /** 年级id */
    @Excel(name = "年级id")
    private String gradeId;

    /** 班级名称 */
    @Excel(name = "班级名称")
    private String name;

    /** 班级人数 */
    @Excel(name = "班级人数")
    private Long number;

    /** 班主任（身份证号） */
    @Excel(name = "班主任", readConverterExp = "身=份证号")
    private String teacherId;



    // 年级
    private String gradeName;

    public String getGradeName() {
        return gradeName;
    }

    public void setGradeName(String gradeName) {
        this.gradeName = gradeName;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setGradeId(String gradeId)
    {
        this.gradeId = gradeId;
    }

    public String getGradeId()
    {
        return gradeId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setNumber(Long number)
    {
        this.number = number;
    }

    public Long getNumber()
    {
        return number;
    }
    public void setTeacherId(String teacherId)
    {
        this.teacherId = teacherId;
    }

    public String getTeacherId()
    {
        return teacherId;
    }

    @Override
    public String toString() {
        return "TbClass{" +
                "id='" + id + '\'' +
                ", gradeId='" + gradeId + '\'' +
                ", name='" + name + '\'' +
                ", number=" + number +
                ", teacherId='" + teacherId + '\'' +
                ", gradeName='" + gradeName + '\'' +
                '}';
    }
}
